import * as types from './mutations-type'
const mutations = {
  [types.CATEGORY] (state, category) {
    state.category = category
  },
  [types.goodsDetail] (state, goodsDetail) {
    state.goodsDetail = goodsDetail
  },
  [types.USERNAME] (state, userName) {
    state.userName = userName
  },
  [types.addressInfo] (state, addressInfo) {
    state.addressInfo = addressInfo
  },
  [types.BROWSE] (state, browse) {
    state.browse = browse
  },
  [types.shopOrderList] (state, shopOrderList) {
    state.shopOrderList = shopOrderList
  },
  [types.temporaryAddress] (state, temporaryAddress) {
    state.temporaryAddress = temporaryAddress
  },
  [types.CITY] (state, city) {
    state.city = city
  },
  [types.SEARCH_GOODS] (state, searchGoods) {
    state.searchGoods = searchGoods
  }
}

export default mutations
